package com.xindacloud.sms.adapter.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.math.BigDecimal;

@Data
@JsonIgnoreProperties
public class SearchMessageVO extends SmsBaseResponseVO {


    /**
     * 主键
     * 发送短信记录ID
     * isNullAble:0
     */
    @JsonIgnoreProperties
    private Integer sendRecordId;

    /**
     * 项目ID
     * isNullAble:0
     */
   // private String projectId;

    /**
     * 短信费用
     * isNullAble:1
     */
    private BigDecimal free;

    /**
     * 发送时间
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private java.time.LocalDateTime submitTime;

    /**
     * 方向outing
     * isNullAble:1,defaultVal:Outing
     */
    private String direction;

    /**
     * 发送者
     * isNullAble:1
     */
    private String sendFrom;

    /**
     * 接受者，号码满足E.164格式
     * isNullAble:1
     */
    private String sendTo;

    /**
     * 消息ID（UUID）
     * isNullAble:1
     */
    private String messageId;


    /**
     * 短信发送编码方式
     * isNullAble:1
     */
    private String encoding;

    /**
     * 返回消息条数
     * isNullAble:1
     */
    private Integer messageCount;

    private String messageBody;

    /**
     * 网络
     * isNullAble:1
     */
    private String network;

    /**
     * 代理商ID
     * isNullAble:1
     */
    private String agentId;

    /**
     * 错误信息
     * isNullAble:1
     */
    private String errorText;

    /**
     * 发送状态
     * isNullAble:1
     */
    private Integer submitStatusCode;

    private String finalStatus;

    /**
     * 发送时间
     * isNullAble:1,defaultVal:CURRENT_TIMESTAMP
     */
    private java.time.LocalDateTime createTime;


}
